<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<base href="<%=basePath%>">

<%@taglib uri="/struts-tags"  prefix="s" %>

<script type="text/javascript">
function testConfirmMsg(url, data){
	alertMsg.confirm("您修改的资料未保存，请选择保存或取消！", {
		okCall: function(){
			$.post(url, data, DWZ.ajaxDone, "json");
		}
	});
}
</script>

<form id="pagerForm" action="sales_load.action" method="post">
      <input type="hidden" name="pageNum" value="1" /><!--【必须】value=1可以写死-->
      <input type="hidden" name="numPerPage" value="${param.numPerPage}" />
</form> 

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
		    <li><input type="checkbox" class="checkboxCtrl" group="ids" />全选</li>
		    <li><a title="确实要删除这些记录吗?" target="selectedTodo" rel="ids" postType="string" href="sales_delete.action" class="delete"><span>删除</span></a></li>
			<li><a class="add" href="sales_addInput.action" target="navTab"><span>添加</span></a></li>
			<li><a class="edit" href="sales_updateInput.action?id={sid}" target="navTab"><span>修改</span></a></li>
			<li class="line">line</li>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="90">
		<thead>
			<tr> 
                <th width="50">选择</th>
				<th width="200">序号</th>
				<th width="200">序列号</th>
				<th width="200">地址</th>
				<th width="200">运输路线</th>
				<th width="200">措施</th>
				</tr>
		</thead>
		<tbody>
		<s:iterator value="sales" var="s">
   		<tr target="sid" rel="${s.id}">
   		    <td><input type="checkbox" name="ids" value="${s.id}" /></td>
   		    <td>${s.id}</td>
   		    <td>${s.xsserialnum}</td>
   		    <td>${s.address}</td>
   		    <td>${s.route}</td>
	        <td>${s.measure}</td>
    	    </tr>
    </s:iterator>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
				<option value="20">20</option>
				<option value="10">10</option>
				<option value="30">30</option>
				<option value="500">50</option>
				<option value="100">100</option>
			</select>
			<span>条，共${pager.totalCount}条</span>
		</div>
		
		<div class="pagination" targetType="navTab" totalCount="${pager.totalCount}" numPerPage="${pager.everyPage}" pageNumShown="10" currentPage="${pager.currentPage}"></div>

	</div>
</div>


